#! /usr/bin/perl

@input = <STDIN>;

print reverse(@input);
